<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
  Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:panelGrid columns="2" style="margin-bottom:1px" cellpadding="5">
		<h:outputLabel for="setPoint" value="Setpoint: " />
		<p:spinner id="setPoint" min="0" max="30" size="4"
			value="#{experimentMBean.experiment.setPoint}" />
	</h:panelGrid>
	
	<h:panelGrid columns="8" style="margin-bottom:1px" cellpadding="5">
	<h:outputText value="Tipo de controlador: " />
	<p:selectOneMenu effect="none"
		value="#{experimentMBean.experiment.pidController.type}">
		<f:selectItem itemValue="-1" itemLabel="Selecione..." />
		<f:selectItem itemValue="0" itemLabel="PID" />
		<f:selectItem itemValue="1" itemLabel="PI-D" />
	</p:selectOneMenu>

	<h:outputText value="Kp:" />
	<p:inputText value="#{experimentMBean.experiment.pidController.kp}"
		size="4" label="Kp" />

	<h:outputText value="Ki:" />
	<p:inputText value="#{experimentMBean.experiment.pidController.ki}"
		size="4" label="Ki" />
	<h:outputText value="Kd:" />
	<p:inputText value="#{experimentMBean.experiment.pidController.kd}"
		size="4" label="Kd" />

	<h:outputText value="Anti-windup: " />
	<h:selectBooleanCheckbox value="#{experimentMBean.experiment.pidController.antiWindup}" />  
	</h:panelGrid>
	

</ui:composition>